package com.jboost.hyk.knowledge.mapper;

import java.util.List;

import com.jboost.hyk.common.model.KnowledgePointImportRes;
import com.jboost.hyk.library.entity.KnowledgeLibraryPoint;
import org.apache.ibatis.annotations.Param;
import com.jboost.hyk.knowledge.entity.KnowledgePoint;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
 * @Description: 知识点
 * @Author: cxn
 * @Date:   2022-10-24
 * @Version: V1.0
 */
public interface KnowledgePointMapper extends BaseMapper<KnowledgePoint> {

    void sellList(@Param("kpIds")String[] kpIds);

    List<KnowledgePoint> checkDeleted(@Param("kpIds") String[] kpIds);

    List<KnowledgeLibraryPoint> listByLibraryIds(String[] libraryIds);

    List<KnowledgePoint> listAllByIds(String[] kpIds);

    List<KnowledgePointImportRes> countImportByIds(List<String> kpIds);

    List<KnowledgePoint> listByIds(List<String> ids);
}
